anonymous function

英 [əˈnɒnɪməs ˈfʌŋkʃn] 美 [əˈnɑːnɪməs ˈfʌŋkʃn]

网络  匿名函数; 匿名函式; 匿名方法; 匿名函数法; 无名函数

计算机



双语例句

  1. This creates an anonymous function and returns it.
    这会创建一个匿名函数并返回此函数。
  2. From the examples so far, you can see that an anonymous function is simply a function, without an name, that is evaluated in place and determines its context based on where it is defined.
    到目前为止看到的例子中,匿名函数都只不过是一个没有名称的函数,它被就地求值,基于定义它的位置来决定它的上下文。
  3. To do that, we make use of one more combinator, the^^ combinator, which takes an anonymous function as a parameter, passing the results of the parse into the anonymous function as a parameter.
    为此,我们使用了另一个组合子,即^^组合子,它以一个匿名函数为参数,将解析的结果作为一个参数传递给该匿名函数。
  4. Above, you used an anonymous function, but you could also use a named function, as shown in Listing 10.
    上面,您已经使用了一个anonymous函数,但是您还可以使用一个命名函数,如清单10所示。
  5. The value of afterFinish is an anonymous function that is invoked when the effect is done.
    afterFinish的值是一个匿名函数,在效果完成时被调用。
  6. In this case, when any client sends data to server, this anonymous function is called and the data is passed into the function.
    在这种情况下,当任意客户端发送数据给服务器时,就会调用这个匿名函数并将数据传入函数中。
  7. Curious readers will be wondering what makes a functor different from an anonymous function or closure.
    好奇的读者会想是什么使仿函数不同于匿名函数或闭包呢?
  8. Each chunk is executed as the body of an anonymous function.
    每个块都是作为一个匿名函数体来执行的。
  9. So for the onInput parameter, you create an anonymous function.
    因此对于onInput参数,将创建一个匿名函数。
  10. Here, filter takes the predicate, an anonymous function that implicitly returns a boolean ( the result of the startsWith() call) and calls the predicate with every element in the "args" array.
    此处,filter接受谓词,这是一个隐式返回布尔值(startsWith()调用的结果)的匿名函数,并使用args中的每个元素来调用谓词。
  11. The code inside the braces to the left of the=> symbol identifies the names and types of the arguments; the code to the right represents the implementation of the anonymous function being defined.
    字符到左侧花括号之间的代码表示参数的名称和类型,右侧的代码表示定义的匿名函数的实现。
  12. In this case, we want to be able to alter the Organizer's pixMap field during the execution of the anonymous function being called by the each function.
    在这里,在执行each函数调用的匿名函数期间,我们希望能够修改Organizer的pixMap字段。
  13. In this example, you use simple HTML tags to pull in icon images and jQuery to attach an anonymous function to that image.
    在本例中,使用简单的HTML标记来拉入图标图像,使用jQuery将一个匿名的函数追加到该图像。
  14. You then pass in an anonymous function ( closure) to the onEvent property.
    然后将一个匿名函数(closure)传入到onEvent属性。
  15. Anonymous function, what's your function?
    匿名函数,您的函数是什么?
  16. This anonymous function again demonstrates the power of treating functions as first-class citizens, allowing you to genericize code in an entirely new dimension beyond inheritance.
    这个匿名函数再次展示了将函数当作一级公民处理的强大功能,它允许您在继承性以外对代码进行全新地泛化。
  17. I pass an anonymous function to the filter() method, using currying to fix the first parameter of the dividesBy() method to the value used to create the code block.
    我将一个匿名函数传递给filter()方法,使用局部套用将dividesBy()方法的第一个参数的值设置为用来创建代码块的值。
  18. One of the references is held by the closure ( the anonymous function assigned to the onclick event) and can't be deleted even if you remove the node.
    其中一个引用是闭包持有的(匿名函数指定给onclick事件)并且即使您删除了节点,也不会被检测到。
  19. Since it is implemented as an anonymous function within another function, one could do some preliminary checks and calculations before creating the iterator.
    由于它是在另外一个函数当中实现了一个匿名函数,人们就能够做一些前置检查和在迭代器创建之后进行计算。
  20. The anonymous function takes two market data as arguments: a ticker symbol and a price.
    匿名函数的参数是两项市场数据:股票代码和价格。
  21. An anonymous function is defined within the context of another function, usually by assigning it to a delegate variable.
    匿名函数通常通过分配到一个代理变量,来在其他函数的上下文中定义。
  22. Visual Basic's Iterators, look more like an anonymous function.
    VisualBasic的迭代器,看上去更像一个匿名函数。
  23. This version of to_function does one thing-it returns an anonymous function.
    这个tofunction实现做了一件事&返回一个匿名函数。
  24. Unlike XAML, you have the option of either passing in a function or defining the converter inline as an anonymous function.
    和XAML不同的是,既可以把一个函数作为参数传入,也可以通过一个内联的匿名函数来定义转换器。
  25. It builds an Erlang expression in abstract form and returns an anonymous function which can dynamically evaluate it later.
    它构造一种抽象形式的Erlang表达式,并返回一个匿名函数,让它以后再动态地求解。
  26. Then you could replace each call to where with an anonymous function that does only the computation necessary.
    之后您在这些地方使用匿名函数来替换。
  27. This particular anonymous function is pretty simple: it wraps broker.
    上面的这个匿名函数很简单,它仅仅包装了一下broker。
  28. A Groovy Closure is an anonymous function that can access its enclosing scope, can be called repeatedly at will, and be passed around as it were data.
    一个Groovy闭包是一个匿名函数,它可访问包含它的范围,可随意被重复调用,并可将其当作数据到处传递。
  29. The second command given to the emulator spawns an anonymous function as an Erlang process and returns the process id.
    给仿真器的第二行命令是产生一个匿名函数的Erlang进程,并且返回进程ID。
  30. Once the business logic is obtained in abstract form within this version of to_function, it returns an anonymous function ( just like the first version of to_function).
    这个版本的tofunction取得业务逻辑的抽象形式之后,会返回一个匿名函数(与前一个版本的tofunction一样)。